---
title: Upstash Redis
---

This example demonstrates how to setup chat history storage using the `UpstashRedisStore` `BaseStore` integration.

## Setup

```bash npm
npm install @langchain/community @langchain/core @upstash/redis
```

## Usage

import UpstashRedisStorage from "/snippets/javascript-integrations/examples/stores/upstash_redis_storage.mdx";

<UpstashRedisStorage />

## Related

- [Key-value store conceptual guide](/oss/concepts/key_value_stores)
